package com.itheima.day08;

import java.util.LinkedList;

public class linkedlistTest {
    public static void main(String[] args) {
        LinkedList list = new LinkedList();
        list.add("子弹1");
        list.add("子弹2");
        list.add("子弹3");
        list.add("子弹4");
        list.add("子弹5");
        System.out.println(list.getLast());
        list.remove();// 默认删除第一个元素
        list.add("子弹6");
        System.out.println(list);
        System.out.println(list.getFirst());
    }
}
